#ifndef _MY_COMMON_H_
#define _MY_COMMON_H_
#include "cocos2d.h"
#include <string>

using namespace std;

using namespace cocos2d;

namespace fireplane{
	class Common{
	public:
		static CCSize getWinSize();
		static CCNode* createScaleNode(CCScene* scene);

		static CCMenuItemSprite* itemFromNormalImage(const char *normalImage, 
			const char *selectedImage,
			CCObject* target, SEL_MenuHandler selector,bool needScale);

		static CCSprite* createSpriteByFrameName(const char* frameName);
		static void doLoadLogic(string file);

		static CCActionInterval* createFrameAnimation(string pre,int count,CCRect rect);

		static CCPoint CCPointApplyAffineTransform(CCPoint& vector,const CCAffineTransform& t);
	};
}


#endif